var Shreeji_ads_url = "http://shineads.net/shads/ad_vid.aspx?pubid=vishnushreeji"; //"http://adf.ly/Hq2Tc";
var Shreeji_ads_img = "http://publishers.shineads.net/user/img/player.jpg";

if (typeof Shreeji_dailymotion != "undefined") {
if (Shreeji_dailymotion == "shreeji") {

        document.write('<a href="' + Shreeji_ads_url + '" target="_blank"><img border="0" height="450" src="' + Shreeji_ads_img + '" width="728" /></a>');

    } else {
    dailymotion = Shreeji_dailymotion;
    dailymotion = "http://www.dailymotion.com/embed/video/" + dailymotion ;
    document.write('<iframe frameborder="0" width="728" height="450" src="' + dailymotion + '?syndication=113193&autoplay=1&logo=1&hideInfos=1"></iframe>');
    Shreeji_dailymotion = ""; 
    }
};

if (typeof Shreeji_dailymotion_link != "undefined") {
if (Shreeji_dailymotion == "shreeji") {

        document.write('<a href="' + Shreeji_ads_url + '" target="_blank"><img border="0" height="450" src="' + Shreeji_ads_img + '" width="728" /></a>');

    } else {
    dailymotion = Shreeji_dailymotion_link;
    dailymotion = dailymotion ;

    document.write('<iframe frameborder="0" width="728" height="450" src="' + dailymotion + '?syndication=113193&autoplay=1&logo=1&hideInfos=1"></iframe>');
    Shreeji_dailymotion = "";
    }
};

if (typeof Shreeji_vidto != "undefined") {
   vidto = "http://vidto.me/embed-" + Shreeji_vidto + "-728x450.html";
   document.write('<iframe width="728" height="450" src="' + vidto + '" frameborder="0" allowfullscreen></iframe>');
  

};
if (typeof Shreeji_Videoweed != "undefined") {
    Videoweed = Shreeji_Videoweed;
    Videoweed = "http://embed.videoweed.es/embed.php?v=" + Videoweed + "&width=728&height=450";
    document.write('<iframe frameborder="0" width="728" height="450" src="' + Videoweed + 'scrolling="no" "></iframe>');
};
if (typeof Shreeji_Nowvideo != "undefined") {
    Nowvideo = Shreeji_Nowvideo;
    Nowvideo = "http://embed.nowvideo.eu/embed.php?v=" + Nowvideo + "&width=728&height=450";
    document.write('<iframe frameborder="0" width="728" height="450" src="' + Nowvideo + 'scrolling="no" "></iframe>');
};
if (typeof Shreeji_Novamov != "undefined") {
    Novamov = Shreeji_Novamov;
    Novamov = "http://embed.novamov.com/embed.php?v=" + Novamov + "&width=728&height=450&px=1";
    document.write('<iframe style="overflow: hidden; border: 0; width: 728px; height: 450px" src="' + Novamov + 'scrolling="no" "></iframe>');
};
if (typeof Shreeji_file != "undefined") {
    shreejifile = Shreeji_file;
    if (typeof Movie_images != "undefined") {
        videoimages = Movie_images;
    } else {
        videoimages = "";
    };
    var vido = ('<object width="728" height="450">' +
    '<param name="movie" value="http://shreejiplayar.googlecode.com/svn/Player/player-licensed-5-10.swf" >' +
    '<param name="allowfullscreen" value="true">' +
    '<param name="allowscriptaccess" value="always">' +
    '<param name="bgcolor" value="#000000">' +
    '<param name="wmode" value="opaque">' +
    '<param name="flashvars" value="file=' + shreejifile + '&skin=http://shreejiplayar.googlecode.com/svn/Player/glow.zip&stretching=exactfit&image= ' + videoimages + '" >' +
    '<embed src="http://shreejiplayar.googlecode.com/svn/Player/player-licensed-5-10.swf" width="728" height="450" allowfullscreen="true" allowscriptaccess="always" bgcolor="#000000" wmode="opaque" flashvars="file=' + shreejifile + '&skin=http://shreejiplayar.googlecode.com/svn/Player/glow.zip&stretching=exactfit&image= ' + videoimages + '" />' +
    ' </object> ');
    document.write(vido);
    videoimages = "";
    Shreeji_file = "";

};
//*******************************************************************************************************************

if (typeof Shreeji_rtmp_file != "undefined") {
    if (typeof Shreeji_rtmp != "undefined") {
        shreejirtmp = Shreeji_rtmp_file;
 //       document.write('<script src="http://shreejiplayar.googlecode.com/svn/Player/jwplayer.js" type="text/javascript"></script>');
        document.write('<div id="jwplayer"></div>');
        jwplayer('jwplayer').setup({
            'id': 'playerID',
            'width': '728',
            'height': '450',
            'provider': 'rtmp',
            'streamer': Shreeji_rtmp,
            'file': shreejirtmp,
            //    'image': 'http://example.com/thumbs/123.jpg',
            'modes': [
        { type: 'flash', src: 'http://shreejiplayar.googlecode.com/svn/Player/player-licensed-5-10.swf' },
            //        {
            //            type: 'html5',
            //            config: {
            //                'file': 'video-20130217-195164.mp4',
            //                'provider': 'video'
            //            }
            //        },
            //        {
            //            type: 'download',
            //            config: {
            //                'file': 'video-20130217-195164.mp4',
            //                'provider': 'video'
            //            }
            //        }
    ], 'skin': 'http://shreejiplayar.googlecode.com/svn/Player/glow.zip'

        });
    }

    //    document.write(vido_rtmp);

};


//*******************************************************************************************************************

if (i != 1) {
    var i = 0;
    i = i + 1;
    //    document.write(i + "if");
} else {
    i = i + 1;
    //    document.write(i + "else");
};

if (i == 1) {
    var add = ('<center>' +
        '    <div id="message0" style="display:inherit; position:absolute; margin-left:200px; margin-top:-380px; width:300px; height:265px; z-index:0;">' +
        '    <div style="margin-top:0%" align="center"></div>' +
        '        <div style="position:absolute; top:0px; left:-10px; height:280px; width:336px" id="floatLayer0">' +
        '        <script language="javascript" type="text/javascript" src="http://shreeji-ads.googlecode.com/svn/All_Ads-300-250.js"></script>' +
        
        '        <div style="position: absolute; left:285px; top: 2px; width: 51px; height: 25px;"><a href="http://shineads.net/shads/ad_vid.aspx?pubid=vishnushreeji" target="_blank"><span onMouseUp = document.getElementById("floatLayer0").style.display="none" ><img src="http://shreejiplayar.googlecode.com/svn/images/close.png"/></span></a></div>' +
//        '        <div style="position: absolute; left:285px; top: 2px; width: 51px; height: 25px;"><a href="http://www.kqzyfj.com/click-6324946-10386909" target="_blank"><span onMouseUp = document.getElementById("floatLayer0").style.display="none" ><img src="http://shreejiplayar.googlecode.com/svn/images/close.png"/></span><img src="http://www.lduhtrp.net/image-6324946-10386909" width="1" height="1" border="0"/></a></div>' +

        
        '        <script language="javascript" type="text/javascript" src="http://shreejiplayar.googlecode.com/svn/timer.js"></script>' +
        '        </div>' +
        '    </div>' +
        '</center>');
    document.write(add);
//   <a href="http://www.kqzyfj.com/click-6324946-10386909" target="_top"><img src="http://www.lduhtrp.net/image-6324946-10386909" width="120" height="60" alt="Get Noticed with a $7.99 .Com/.CO from Go Daddy!  " border="0"/></a>


};
